Adjust image size, slicing and advanced settings
The defaults of a training suit most datasets. When they do not, because the images are large, the defects small or the model has to run on a particular device, the training configuration lets you change the image size, cut the images into tiles and set the parameters of the model. In this guide you go through those settings for a dataset of biscuit packs, without starting the training.
What you will learn
- How the image size changes what a model sees and what it costs
- When to slice large images into tiles, and how
- What the advanced settings and the export formats are for
Before you start
You need a labeled dataset. Starting a training is explained in Train your first model; this guide covers only the training configuration.
1. Open the training setup
Open the dataset, go to the «Models» tab, click «Train a new model» and choose «Production training». In object detection datasets the platform first suggests validating the boxes; click «Continue» to go on to the setup.
2. Find the training configuration
The setup has four cards: the name, the images and tags, the data division and, last, «Training configuration». Its top row chooses the task, the model and its size, and the slider sets the training time; below come the settings of this guide.

3. Set the image size
Every image is resized to «Width» × «Height» before the model sees it. The fields start at the size of the dataset's images (up to 2048 pixels, the limit of most models).
- Smaller trains faster, needs less memory and a cheaper machine, but details smaller than a few pixels after the resize disappear.
- Larger keeps small defects visible, at the cost of time and memory.
The arrow in each field restores the original size. Here the packs are resized to about half their size: the biscuits are large enough to survive it.

4. Turn on image slicing
Switch on «Image Slicing» to train on a grid of tiles instead of the whole image. Each tile is seen at the training size, so a small defect takes more pixels. Use it with high-resolution images where the objects are small; leave it off when the objects are large or speed matters more than accuracy.
It is offered for object detection, oriented boxes, segmentation and text datasets; classification and anomaly detection always see whole images.

5. Set the grid of tiles
Slicing starts with two columns and two rows. The preview draws the tiles over a sample image of the dataset («Another sample image» shows another), and «Resulting size» says how large each tile is.
- «Columns» and «Rows»: more tiles catch smaller objects; fewer train faster.
- «Overlap X» and «Overlap Y»: the share of each tile that its neighbour also covers, from 0 to 1, so that an object on an edge appears whole in some tile. 0.1 is 10 %.
- «Max empty slice ratio»: how many tiles without any object are kept, from 0 (none) to 1 (all). A few teach the model what the background looks like.
- «Edge annotation margin»: drops boxes that lie entirely within this border of a tile; keep it below the overlap.

6. Open the advanced settings
Click «Advanced settings», at the bottom of the card. They are closed because the defaults are chosen for each model and rarely need changing.

7. Choose the export formats
«Export formats» chooses the files the finished model is saved in, besides its own. ONNX runs on the inference nodes of the controller and is chosen by default; NCNN is for small ARM devices. Each extra format takes a little longer at the end of the training.

8. Change a parameter
«Batch Size» is how many images the model sees at once, limited by the memory of the machine; «Patience» stops the training early when it stops improving. Below come the parameters of the model, grouped: «Learning rate», «Optimizer», «Loss gains», «Training» and «Augmentation». Each has a help mark that explains it, and the arrow in its field restores the default.
Here, in «Augmentation», «Vertical flip prob.» goes from 0 to 0.5: half the images are shown upside down during training, since a pack can lie either way on the line. The group then reads «1 modified», and its «Enabled» switch turns all augmentation off at once.

9. Check the summary
The card on the right sums the training up. Each change prices it again: the image size and the batch decide how much memory it needs, and so which machine, and the machine and the time decide the tokens. Click «Train» when it looks right, or «All models» to leave without training: the settings are not saved.

Good to know
- The same settings again. «Copy from another training», at the top of «Training configuration», takes the settings of an earlier training of the dataset.
- Models with a fixed run. Some anomaly detection models always train one pass over the images: they show no time slider.
- «No machine can fit this configuration». The image size, the batch size or the model size is too large for any machine: reduce one of them.
Next steps
Recorded on Rosepetal release 1.8.15.